const entry = require('../config/entry')
const output = require('../config/output')
const devServer = require('../config/devServe')
const plugins = require('../config/plugins')
const loader = require('../config/loader')
module.exports = {
    entry,
    output,
    module: {
        rules: loader
    },
    plugins,
    devServer,
    optimization: {
        splitChunks: {
            chunks: 'all',
            cacheGroups: {
                styles: {
                    name: 'styles', // 拆分出来的 CSS 文件名
                    test: /\.css$/,
                    chunks: 'all',
                    enforce: true,
                },
            }
        }
    }
}